<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CDN服务全解析 - 现代网络加速技术</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
            background-color: #f9fafb;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        .section-title {
            position: relative;
            padding-left: 1.5rem;
        }
        .section-title:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.25em;
            height: 1em;
            width: 0.5rem;
            background: linear-gradient(to bottom, #6e8efb, #a777e3);
            border-radius: 0.25rem;
        }
        .card-hover {
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        .highlight-box {
            background: linear-gradient(135deg, rgba(110, 142, 251, 0.1) 0%, rgba(167, 119, 227, 0.1) 100%);
            border-left: 4px solid #6e8efb;
        }
        .icon-circle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        .mermaid-tooltip {
            position: absolute;
            background: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 100;
            font-family: 'Noto Sans SC', sans-serif;
            font-size: 0.9rem;
            max-width: 300px;
            display: none;
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 md:py-32 px-4 md:px-0">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight font-serif">CDN服务全解析</h1>
                    <p class="text-xl md:text-2xl opacity-90 mb-8 leading-relaxed">现代互联网的加速引擎与安全守护者</p>
                    <div class="flex flex-wrap gap-4">
                        <div class="bg-white bg-opacity-20 rounded-full px-6 py-2 flex items-center">
                            <i class="fas fa-bolt mr-2"></i> 加速技术
                        </div>
                        <div class="bg-white bg-opacity-20 rounded-full px-6 py-2 flex items-center">
                            <i class="fas fa-shield-alt mr-2"></i> 安全防护
                        </div>
                        <div class="bg-white bg-opacity-20 rounded-full px-6 py-2 flex items-center">
                            <i class="fas fa-globe mr-2"></i> 全球部署
                        </div>
                    </div>
                </div>
                <div class="md:w-1/2 md:pl-12">
                    <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1721180864270-b36eeb60-3cb7-4c22-a36c-c69bdd9a03b5.png" alt="CDN网络示意图" class="rounded-lg shadow-xl w-full h-auto">
                </div>
            </div>
        </div>
    </section>

    <!-- Content Navigation -->
    <div class="bg-white sticky top-0 z-10 shadow-sm">
        <div class="container mx-auto max-w-5xl px-4">
            <div class="flex overflow-x-auto py-4 hide-scrollbar">
                <a href="#intro" class="whitespace-nowrap px-4 py-2 text-gray-700 hover:text-purple-600 font-medium">基本概念</a>
                <a href="#architecture" class="whitespace-nowrap px-4 py-2 text-gray-700 hover:text-purple-600 font-medium">架构组成</a>
                <a href="#functions" class="whitespace-nowrap px-4 py-2 text-gray-700 hover:text-purple-600 font-medium">核心功能</a>
                <a href="#advantages" class="whitespace-nowrap px-4 py-2 text-gray-700 hover:text-purple-600 font-medium">主要优势</a>
                <a href="#applications" class="whitespace-nowrap px-4 py-2 text-gray-700 hover:text-purple-600 font-medium">应用场景</a>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <div class="container mx-auto max-w-5xl px-4 py-12">
        <!-- Introduction Section -->
        <section id="intro" class="mb-20">
            <h2 class="text-3xl font-bold mb-8 font-serif">什么是CDN服务</h2>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div>
                    <p class="mb-6 text-lg text-gray-700 leading-relaxed">CDN服务（Content Delivery Network，内容分发网络），无论是浏览网页、观看在线视频，还是进行在线购物，大家每天都在不知不觉中依赖于CDN。互联网的本质在于连接，连接用户与内容、服务与数据。</p>
                    
                    <div class="highlight-box p-6 rounded-lg mb-8">
                        <p class="font-medium mb-2 text-purple-700"><i class="fas fa-info-circle mr-2"></i>关键概念</p>
                        <p>CDN是一种用于优化互联网内容传输的技术，通过分布式服务器网络，将内容分发到距离用户最近的节点，从而提高访问速度、减少延迟、提升可靠性和安全性。</p>
                    </div>
                </div>
                <div>
                    <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1721181304780-67bb9589-944a-4cab-82e9-9e5233ed9e82.png" alt="CDN概念图" class="rounded-lg shadow-md w-full h-auto">
                </div>
            </div>

            <div class="grid md:grid-cols-3 gap-6">
                <div class="bg-white p-6 rounded-xl card-hover">
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <span class="w-8 h-8 bg-purple-100 text-purple-600 rounded-full flex items-center justify-center mr-3">1</span>
                        定义
                    </h3>
                    <p class="text-gray-700">CDN是一个由分布在多个地理位置的服务器组成的网络，其主要目的是通过缓存和分发内容，加快内容传输速度，减轻源服务器的负载。</p>
                </div>
                
                <div class="bg-white p-6 rounded-xl card-hover">
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <span class="w-8 h-8 bg-purple-100 text-purple-600 rounded-full flex items-center justify-center mr-3">2</span>
                        工作原理
                    </h3>
                    <p class="text-gray-700">利用地理位置靠近用户的服务器节点缓存内容，并通过智能路由技术将用户请求引导至最佳节点，显著提高访问速度和体验。</p>
                </div>
                
                <div class="bg-white p-6 rounded-xl card-hover">
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <span class="w-8 h-8 bg-purple-100 text-purple-600 rounded-full flex items-center justify-center mr-3">3</span>
                        服务类型
                    </h3>
                    <p class="text-gray-700">包括静态内容加速、视频点播和直播、动态内容加速以及安全加速等多种服务类型，满足不同业务需求。</p>
                </div>
            </div>
        </section>

        <!-- Architecture Section -->
        <section id="architecture" class="mb-20">
            <h2 class="text-3xl font-bold mb-8 font-serif">CDN的架构与组成</h2>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div>
                    <p class="mb-6 text-lg text-gray-700 leading-relaxed">CDN（内容分发网络）的架构是由多层次、多组件协同工作的复杂系统设计而成，其核心目标是优化内容传输效率、提高用户访问速度、降低源服务器压力、并增强整体网络的可靠性和安全性。</p>
                    
                    <div class="bg-white p-6 rounded-lg shadow-sm border border-gray-100 mb-8">
                        <h3 class="font-bold text-lg mb-3 text-purple-600">架构概述</h3>
                        <ul class="space-y-2">
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>边缘层</strong>：由分布在全球各地的边缘服务器组成，负责直接响应用户请求</span>
                            </li>
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>中间层</strong>：主要承担缓存数据的中转和汇聚功能，位于边缘层和源服务器之间</span>
                            </li>
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>源服务器层</strong>：存储原始内容的服务器，当缓存节点无法提供所需内容时，回源服务器将提供最新数据</span>
                            </li>
                        </ul>
                    </div>
                </div>
                <div>
                    <img src="https://cdn.nlark.com/yuque/0/2024/png/21449790/1721181023679-3fc8dc00-c369-4d2e-b8fd-b5230a0ef8a4.png" alt="CDN架构图" class="rounded-lg shadow-md w-full h-auto">
                </div>
            </div>

            <div class="mb-12">
                <h3 class="text-2xl font-bold mb-6 font-serif">核心组件</h3>
                
                <div class="grid md:grid-cols-2 gap-6">
                    <div class="bg-white p-6 rounded-xl card-hover">
                        <div class="icon-circle mx-auto">
                            <i class="fas fa-server"></i>
                        </div>
                        <h4 class="text-xl font-bold mb-3 text-center">边缘服务器</h4>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>缓存</strong>：缓存用户请求的静态内容，减少对源服务器的请求</span>
                            </li>
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>缓存策略</strong>：包括LRU、LFU等策略，优化缓存管理</span>
                            </li>
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>内容分发</strong>：通过智能路由引导用户请求</span>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="bg-white p-6 rounded-xl card-hover">
                        <div class="icon-circle mx-auto">
                            <i class="fas fa-network-wired"></i>
                        </div>
                        <h4 class="text-xl font-bold mb-3 text-center">中间服务器</h4>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>中转缓存</strong>：缓存较大范围内的内容，减少跨区域访问</span>
                            </li>
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>汇聚功能</strong>：汇聚多个边缘节点的请求，优化传输路径</span>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="bg-white p-6 rounded-xl card-hover">
                        <div class="icon-circle mx-auto">
                            <i class="fas fa-database"></i>
                        </div>
                        <h4 class="text-xl font-bold mb-3 text-center">源服务器</h4>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>原始内容存储</strong>：存储网站的原始数据和内容</span>
                            </li>
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>回源机制</strong>：当边缘节点未命中缓存时提供最新数据</span>
                            </li>
                        </ul>
                    </div>
                    
                    <div class="bg-white p-6 rounded-xl card-hover">
                        <div class="icon-circle mx-auto">
                            <i class="fas fa-route"></i>
                        </div>
                        <h4 class="text-xl font-bold mb-3 text-center">智能路由</h4>
                        <ul class="space-y-2 text-gray-700">
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>DNS重定向</strong>：将用户请求引导至最优节点</span>
                            </li>
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>Anycast IP</strong>：同一IP指向多个位置，自动路由到最近节点</span>
                            </li>
                            <li class="flex items-start">
                                <span class="text-purple-500 mr-2">•</span>
                                <span><strong>负载均衡</strong>：优化资源使用和性能</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="mb-12">
                <h3 class="text-2xl font-bold mb-6 font-serif">数据处理流程</h3>
                
                <div class="bg-white p-6 rounded-xl shadow-sm">
                    <div class="mermaid">
                        graph TD
                            A[用户请求] --> B[DNS解析]
                            B --> C[边缘节点缓存]
                            C -->|有缓存| D[直接返回内容]
                            C -->|无缓存| E[中间节点缓存]
                            E -->|有缓存| F[返回边缘节点]
                            E -->|无缓存| G[回源请求]
                            G --> H[源服务器]
                            H --> I[返回中间节点]
                            I --> J[返回边缘节点]
                            J --> K[返回用户]
                    </div>
                </div>
            </div>
        </section>

        <!-- Functions Section -->
        <section id="functions" class="mb-20">
            <h2 class="text-3xl font-bold mb-8 font-serif">CDN的主要功能</h2>
            
            <div class="grid md:grid-cols-3 gap-6 mb-12">
                <div class="bg-white p-8 rounded-xl card-hover border-b-4 border-purple-500">
                    <div class="text-purple-600 text-3xl mb-4">
                        <i class="fas fa-tachometer-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">内容加速</h3>
                    <p class="text-gray-700 mb-4">通过缓存和智能路由技术，显著提升静态和动态内容的访问速度</p>
                    <ul class="space-y-2 text-sm text-gray-600">
                        <li class="flex items-start">
                            <span class="text-purple-500 mr-2">•</span>
                            <span>静态资源缓存与刷新机制</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-purple-500 mr-2">•</span>
                            <span>动态路由优化与内容预取</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-8 rounded-xl card-hover border-b-4 border-blue-500">
                    <div class="text-blue-600 text-3xl mb-4">
                        <i class="fas fa-balance-scale"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">负载均衡</h3>
                    <p class="text-gray-700 mb-4">通过全球分布的节点智能调度流量，避免单一服务器过载</p>
                    <ul class="space-y-2 text-sm text-gray-600">
                        <li class="flex items-start">
                            <span class="text-blue-500 mr-2">•</span>
                            <span>全球流量分散与智能调度</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-blue-500 mr-2">•</span>
                            <span>带宽优化与资源利用</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-8 rounded-xl card-hover border-b-4 border-green-500">
                    <div class="text-green-600 text-3xl mb-4">
                        <i class="fas fa-shield-alt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">安全防护</h3>
                    <p class="text-gray-700 mb-4">提供多层次安全防护，保障网站和应用的安全运行</p>
                    <ul class="space-y-2 text-sm text-gray-600">
                        <li class="flex items-start">
                            <span class="text-green-500 mr-2">•</span>
                            <span>DDoS防护与流量清洗</span>
                        </li>
                        <li class="flex items-start">
                            <span class="text-green-500 mr-2">•</span>
                            <span>WAF与数据加密</span>
                        </li>
                    </ul>
                </div>
            </div>

            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <h3 class="text-2xl font-bold mb-6 font-serif">高可用性设计</h3>
                    
                    <div class="bg-white p-6 rounded-lg shadow-sm mb-6">
                        <div class="flex items-start">
                            <div class="bg-purple-100 text-purple-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-redo-alt"></i>
                            </div>
                            <div>
                                <h4 class="font-bold mb-2">冗余设计</h4>
                                <p class="text-gray-700">全球范围内部署多个服务器节点，即使某一节点发生故障，其他节点仍能提供服务，避免单点故障。</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white p-6 rounded-lg shadow-sm">
                        <div class="flex items-start">
                            <div class="bg-purple-100 text-purple-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-expand-arrows-alt"></i>
                            </div>
                            <div>
                                <h4 class="font-bold mb-2">弹性扩展</h4>
                                <p class="text-gray-700">根据流量变化动态调整服务器资源的分配，实现弹性扩展，适应不同的业务需求。</p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div>
                    <h3 class="text-2xl font-bold mb-6 font-serif">监控与分析</h3>
                    
                    <div class="bg-white p-6 rounded-lg shadow-sm mb-6">
                        <div class="flex items-start">
                            <div class="bg-purple-100 text-purple-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-chart-line"></i>
                            </div>
                            <div>
                                <h4 class="font-bold mb-2">实时监控</h4>
                                <p class="text-gray-700">监控各节点的运行状态、性能指标和流量情况，及时发现并处理问题。</p>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white p-6 rounded-lg shadow-sm">
                        <div class="flex items-start">
                            <div class="bg-purple-100 text-purple-600 p-3 rounded-lg mr-4">
                                <i class="fas fa-file-alt"></i>
                            </div>
                            <div>
                                <h4 class="font-bold mb-2">日志分析</h4>
                                <p class="text-gray-700">通过分析访问日志，了解用户行为，优化内容分发策略，提高服务质量。</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Advantages Section -->
        <section id="advantages" class="mb-20">
            <h2 class="text-3xl font-bold mb-8 font-serif">CDN的优势</h2>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div>
                    <div class="bg-white p-8 rounded-xl shadow-lg mb-8">
                        <div class="flex items-center mb-6">
                            <div class="bg-gradient-to-r from-purple-500 to-blue-500 text-white p-3 rounded-lg mr-4">
                                <i class="fas fa-rocket text-2xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">性能提升</h3>
                        </div>
                        <p class="text-gray-700 mb-6">CDN通过边缘缓存和智能路由技术，显著提升内容访问速度，优化用户体验。</p>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <p class="font-medium text-purple-600 mb-2">技术实现：</p>
                            <ul class="space-y-2">
                                <li class="flex items-start">
                                    <span class="text-purple-500 mr-2">•</span>
                                    <span>边缘节点缓存静态内容，减少回源请求</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="text-purple-500 mr-2">•</span>
                                    <span>Anycast IP技术自动路由到最近节点</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="text-purple-500 mr-2">•</span>
                                    <span>内容预取优化首次访问体验</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    
                    <div class="bg-white p-8 rounded-xl shadow-lg">
                        <div class="flex items-center mb-6">
                            <div class="bg-gradient-to-r from-green-500 to-teal-500 text-white p-3 rounded-lg mr-4">
                                <i class="fas fa-dollar-sign text-2xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">成本优化</h3>
                        </div>
                        <p class="text-gray-700 mb-6">CDN通过流量优化和资源利用，显著降低企业带宽和服务器成本。</p>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <p class="font-medium text-green-600 mb-2">经济价值：</p>
                            <ul class="space-y-2">
                                <li class="flex items-start">
                                    <span class="text-green-500 mr-2">•</span>
                                    <span>减少源站带宽消耗，降低带宽成本</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="text-green-500 mr-2">•</span>
                                    <span>动态扩展资源，避免过度投资基础设施</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="text-green-500 mr-2">•</span>
                                    <span>提升性能间接提高转化率和收入</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
                
                <div>
                    <div class="bg-white p-8 rounded-xl shadow-lg mb-8">
                        <div class="flex items-center mb-6">
                            <div class="bg-gradient-to-r from-blue-500 to-indigo-500 text-white p-3 rounded-lg mr-4">
                                <i class="fas fa-shield-alt text-2xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">安全增强</h3>
                        </div>
                        <p class="text-gray-700 mb-6">CDN提供多层次安全防护，保护网站和应用免受各种网络威胁。</p>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <p class="font-medium text-blue-600 mb-2">安全特性：</p>
                            <ul class="space-y-2">
                                <li class="flex items-start">
                                    <span class="text-blue-500 mr-2">•</span>
                                    <span>DDoS防护与流量清洗抵御攻击</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="text-blue-500 mr-2">•</span>
                                    <span>Web应用防火墙防范常见Web攻击</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="text-blue-500 mr-2">•</span>
                                    <span>SSL/TLS加密保障数据传输安全</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    
                    <div class="bg-white p-8 rounded-xl shadow-lg">
                        <div class="flex items-center mb-6">
                            <div class="bg-gradient-to-r from-orange-500 to-pink-500 text-white p-3 rounded-lg mr-4">
                                <i class="fas fa-users text-2xl"></i>
                            </div>
                            <h3 class="text-2xl font-bold">体验优化</h3>
                        </div>
                        <p class="text-gray-700 mb-6">CDN显著改善终端用户体验，提高用户满意度和业务指标。</p>
                        <div class="bg-gray-50 p-4 rounded-lg">
                            <p class="font-medium text-orange-600 mb-2">用户体验：</p>
                            <ul class="space-y-2">
                                <li class="flex items-start">
                                    <span class="text-orange-500 mr-2">•</span>
                                    <span>页面加载速度提升2-3倍</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="text-orange-500 mr-2">•</span>
                                    <span>视频播放流畅无卡顿</span>
                                </li>
                                <li class="flex items-start">
                                    <span class="text-orange-500 mr-2">•</span>
                                    <span>高并发下仍保持稳定性能</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="bg-white p-8 rounded-xl shadow-lg">
                <h3 class="text-2xl font-bold mb-6 font-serif">CDN提升业务指标</h3>
                <div class="mermaid">
                    pie
                        title CDN对业务指标的影响
                        "页面加载时间减少50%" : 30
                        "跳出率降低20%" : 20
                        "转化率提升15%" : 25
                        "服务器成本降低40%" : 15
                        "安全事件减少90%" : 10
                </div>
            </div>
        </section>

        <!-- Applications Section -->
        <section id="applications">
            <h2 class="text-3xl font-bold mb-8 font-serif">CDN的实际应用场景</h2>
            
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="bg-white p-8 rounded-xl card-hover">
                    <div class="flex items-center mb-6">
                        <div class="bg-purple-100 text-purple-600 p-3 rounded-lg mr-4">
                            <i class="fas fa-shopping-cart"></i>
                        </div>
                        <h3 class="text-2xl font-bold">电子商务</h3>
                    </div>
                    <p class="text-gray-700 mb-6">CDN为电商平台提供快速稳定的购物体验，尤其在大型促销活动期间。</p>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <span class="bg-purple-100 text-purple-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">1</span>
                            <span>加速商品图片和详情页加载</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-purple-100 text-purple-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">2</span>
                            <span>优化购物车和支付流程响应速度</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-purple-100 text-purple-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">3</span>
                            <span>防护DDoS攻击和恶意爬虫</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-8 rounded-xl card-hover">
                    <div class="flex items-center mb-6">
                        <div class="bg-blue-100 text-blue-600 p-3 rounded-lg mr-4">
                            <i class="fas fa-video"></i>
                        </div>
                        <h3 class="text-2xl font-bold">视频流媒体</h3>
                    </div>
                    <p class="text-gray-700 mb-6">CDN为视频平台提供流畅的观看体验，支持大规模并发访问。</p>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <span class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">1</span>
                            <span>减少视频缓冲和卡顿现象</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">2</span>
                            <span>支持4K/8K超高清视频传输</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-blue-100 text-blue-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">3</span>
                            <span>优化直播流的分发和实时性</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-8 rounded-xl card-hover">
                    <div class="flex items-center mb-6">
                        <div class="bg-green-100 text-green-600 p-3 rounded-lg mr-4">
                            <i class="fas fa-gamepad"></i>
                        </div>
                        <h3 class="text-2xl font-bold">游戏行业</h3>
                    </div>
                    <p class="text-gray-700 mb-6">CDN为游戏开发商和玩家提供低延迟、高稳定的游戏体验。</p>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <span class="bg-green-100 text-green-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">1</span>
                            <span>加速游戏客户端和补丁下载</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-green-100 text-green-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">2</span>
                            <span>优化多人在线游戏数据传输</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-green-100 text-green-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">3</span>
                            <span>防护游戏服务器免受DDoS攻击</span>
                        </li>
                    </ul>
                </div>
                
                <div class="bg-white p-8 rounded-xl card-hover">
                    <div class="flex items-center mb-6">
                        <div class="bg-orange-100 text-orange-600 p-3 rounded-lg mr-4">
                            <i class="fas fa-mobile-alt"></i>
                        </div>
                        <h3 class="text-2xl font-bold">移动应用</h3>
                    </div>
                    <p class="text-gray-700 mb-6">CDN为移动应用提供快速的内容加载和数据传输。</p>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <span class="bg-orange-100 text-orange-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">1</span>
                            <span>加速应用内图片和视频加载</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-orange-100 text-orange-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">2</span>
                            <span>优化API接口响应速度</span>
                        </li>
                        <li class="flex items-start">
                            <span class="bg-orange-100 text-orange-600 rounded-full w-6 h-6 flex items-center justify-center mr-3 flex-shrink-0">3</span>
                            <span>支持应用增量更新包分发</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="bg-white p-8 rounded-xl shadow-lg">
                <h3 class="text-2xl font-bold mb-6 font-serif">CDN行业应用关系图</h3>
                <div class="mermaid">
                    graph LR
                        A[CDN服务] --> B[电子商务]
                        A --> C[视频流媒体]
                        A --> D[游戏行业]
                        A --> E[移动应用]
                        A --> F[企业门户]
                        A --> G[新闻媒体]
                        
                        B --> H[加速商品图片]
                        B --> I[优化支付流程]
                        B --> J[防护DDoS攻击]
                        
                        C --> K[减少视频缓冲]
                        C --> L[支持超高清]
                        C --> M[优化直播流]
                        
                        D --> N[加速补丁下载]
                        D --> O[优化游戏数据]
                        D --> P[防护游戏服务器]
                        
                        E --> Q[加速应用内容]
                        E --> R[优化API响应]
                        E --> S[支持增量更新]
                </div>
            </div>
        </section>
    </div>

    <script>
        // Initialize Mermaid
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            },
            pie: {
                useMaxWidth: true
            }
        });
        
        // Add hover effect for mermaid diagrams
        document.addEventListener('DOMContentLoaded', function() {
            const mermaidDiagrams = document.querySelectorAll('.mermaid');
            
            mermaidDiagrams.forEach(diagram => {
                diagram.addEventListener('mouseover', function(e) {
                    const target = e.target;
                    if (target.tagName === 'tspan' || target.tagName === 'text') {
                        const tooltip = document.createElement('div');
                        tooltip.className = 'mermaid-tooltip';
                        tooltip.textContent = target.textContent;
                        document.body.appendChild(tooltip);
                        
                        tooltip.style.display = 'block';
                        tooltip.style.left = (e.pageX + 10) + 'px';
                        tooltip.style.top = (e.pageY + 10) + 'px';
                        
                        target.addEventListener('mouseout', function() {
                            tooltip.remove();
                        });
                    }
                });
            });
            
            // Smooth scroll for navigation
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function (e) {
                    e.preventDefault();
                    
                    document.querySelector(this.getAttribute('href')).scrollIntoView({
                        behavior: 'smooth'
                    });
                });
            });
        });
    </script>
</body>
</html>